package com.guigu.dealservice.mapper;

import com.guigu.dealservice.entity.MonthlyData;
import com.guigu.dealservice.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 订单表（存储买卖双方的交易订单信息） Mapper 接口
 * </p>
 *
 * @author ysp
 * @since 2025-10-10
 */
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> queryOrderByUserId(Long userId);

    List<MonthlyData> getRecentSixMonthsData();

}
